<me:UITMKRF x:Class="WPFExcelReport.TGMF02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UITMKRF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UITMKRF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0">同色号</TextBlock>
        <DataGrid  Grid.Row="1" Name="dgColor"
                                       CanUserReorderColumns="True"  
                                       Height="200"
                                       FontSize="12"
                                       CanUserResizeRows="True" CanUserSortColumns="True"                  
                                       AutoGenerateColumns="False"   
                                       EnableRowVirtualization="True"  
                                       RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                       IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                                        HorizontalScrollBarVisibility="Auto"
                                        VerticalScrollBarVisibility="Auto"
                                         ItemsSource="{Binding Source={StaticResource vwMaster}}"   
                                       >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=SPCONFIRM, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=确认}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFPLDATV, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=计划日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFSCHICHTV, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=班次}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPFARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=生产单}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFPOS, Converter={StaticResource ResourceKey=pnum}}" Header=" "  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBLFDNR, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=机台}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBPOS, Converter={StaticResource ResourceKey=pnum}}" Header=""  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
        <TextBlock Grid.Row="2">同品种</TextBlock>
        <DataGrid   Grid.Row="3"
                                        CanUserReorderColumns="True"  
                                        FontSize="12"
                                        CanUserResizeRows="True" CanUserSortColumns="True"                  
                                        AutoGenerateColumns="False"   
                                        EnableRowVirtualization="True"  
                                        RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                        HorizontalScrollBarVisibility="Auto"
                                        VerticalScrollBarVisibility="Auto"
                                        IsSynchronizedWithCurrentItem="True"   Visibility="Visible"
                        Height="200"                        
                          ItemsSource="{Binding Source={StaticResource vwMaster}}"   
                  >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=SPCONFIRM, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=确认}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFPLDATV}" Header="{Binding Source={Localization:TranslateExtension Word=计划日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFSCHICHTV, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=班次}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="{Binding Source={Localization:TranslateExtension Word=任务书}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VKPFARBE, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=花型}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPART}" Header="{Binding Source={Localization:TranslateExtension Word=品种}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPFARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=生产单}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFPOS}" Header=" "  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBLFDNR, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=机台}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBPOS}" Header=""  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
        <TextBlock Grid.Row="4">同任务书</TextBlock>
        <DataGrid   Grid.Row="5"
                                        CanUserReorderColumns="True"  
                                        FontSize="12"
                                        CanUserResizeRows="True" CanUserSortColumns="True"                  
                                        AutoGenerateColumns="False"   
                                        EnableRowVirtualization="True"  
                                        RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                        IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                                        HorizontalScrollBarVisibility="Auto"
                                        VerticalScrollBarVisibility="Auto"
                                        ItemsSource="{Binding Source={StaticResource vwMaster}}"   
                                        Height="200"
                  >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=SPCONFIRM, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=确认}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFPLDATV, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=计划日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=MKFSCHICHTV, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=班次}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VKPART}" Header="{Binding Source={Localization:TranslateExtension Word=任务书}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VKPFARBE, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=花型}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPART}" Header="{Binding Source={Localization:TranslateExtension Word=品种}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPFARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=生产单}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFAUFPOS, Converter={StaticResource ResourceKey=pnum}}" Header=" "  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBLFDNR, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:TranslateExtension Word=机台}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABFBPOS, Converter={StaticResource ResourceKey=pnum}}" Header=""  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:UITMKRF> 
 
